// FILESYSTEM.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"

#include <string>
using namespace std;

#include <boost/filesystem.hpp>
#include <boost/shared_ptr.hpp>
using namespace boost::filesystem;
using namespace boost;

int _tmain(int argc, _TCHAR* argv[])
{
	shared_ptr<int> ptr_(new int);
	*ptr_ = 33;

	unsigned long ul = dynamic_cast<unsigned long>(ptr_);
	unsigned long ul2 = (unsigned long)(ptr_.get());

	int* ppp = new int;
	*ppp = 3;

	vector<int*> arr;
	arr.push_back(ppp);

	ppp = NULL;

	return 0;

	path p("d:/user/files/my_file.dat");

	path p1 = p.extension();
	path p2 = p.filename();
	path p3 = p.stem();
	path p4 = p.root_directory();
	path p5 = p.root_name();
	path p6 = p.root_path();
	path p7 = p.parent_path();
	path p8 = p.relative_path();
	path p9 = p.remove_filename();
	path p10 = p.remove_leaf();
	path p11 = p.replace_extension();

	path ptest("c:/a.txt");
	p.swap(ptest);

	return 0;
}